package com.pm.service.security;

import com.pm.entity.IndexBean;
import com.pm.entity.po.security.User;
import com.pm.service.BaseService;

public interface UserService extends BaseService<User> {

    /**
     * Title: loadUserInfo 登录
     * @param user 用户信息
     * @return
     */
    IndexBean login(User user);

    IndexBean loadUserInfo(User user);

    /**
     * 验证用户是否存在或是否唯一 Title: loadUserInfoByUserName
     * @param userName
     * @return
     */
    User loadUserInfoByUserName(String userName);

    /**
     * 获取用户有多少个
     * @param user
     * @return
     */
    Integer countUserNum(User user);
}
